package com.agile.leetcode.rpc.pojo;

import java.io.Serializable;

/**
 * @Author KD
 * @Date 2021/1/19 15:13
 */
public class CalculatorRpcRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 参数1
     */
    int a;
    /**
     * 参数2
     */
    int b;
    /**
     * 方法
     */
    String method;

    public CalculatorRpcRequest(int a, int b, String method) {
        this.a = a;
        this.b = b;
        this.method = method;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "CalculatorRpcRequest{" +
                "a=" + a +
                ", b=" + b +
                ", method='" + method + '\'' +
                '}';
    }
}
